<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

//$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
$cakeDescription = __d('cake_dev', 'CakePHP: ');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php //echo $cakeDescription : ?>
		<?php echo $title_for_layout; ?>
	</title>

	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
    <!-- script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script -->
    <!-- script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script -->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
	<!--[if lt IE 9]><script>  
	if (/*@cc_on!@*/false) {  
	document.documentElement.className+=' ie10';  
	}  
	</script><![endif]-->

	<?php
		echo $this->Html->meta('icon');

		//echo $this->Html->css('cake.generic');
		
		echo $this->Html->css('jquery.jqplot.min');
		echo $this->Html->css('style');
		//echo $this->Html->css('style-more');
		
		//echo $this->Html->script('vote');

		echo $this->Html->css('https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css');

		//echo $this->Html->script('facescroll');
		//echo $this->Html->script('jqplot.barRenderer.min');
		//echo $this->Html->script('jqplot.cursor.min');
		//echo $this->Html->script('jqplot.highlighter.min');
		//echo $this->Html->script('jqplot.pointLabels.min');
		//echo $this->Html->script('jquery.jqplot.min');
		echo $this->Html->script('main.js');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>

	<meta name="viewport" content="width=device-width,initial-scale=1">

</head>

<body>
  
  <div class="container">
      
    <!-- Sidebar Left
    ================================================== -->
    <div id="sidebarMenu">
     <?php
     	echo $this->element('sidebar_left');
     ?>
    </div>
    
    <!-- Main Content
    ================================================== -->
	<!-- table filter -->
	<?php 
		echo $this->element('filter_top');
     ?>    
    <div class="blocker hide"></div>
	  <?php //include "listing.php";?>
	  <!-- div style="float: left;left: 336px;position: fixed;top: 45px;background-color: pink;width: 899px;" -->
	  
			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>

	  <!-- /div -->
	  
    <div class="tableOpt">
      <a href="#" id="chartToggle" class="toggle">show chart</a>
		<ul class="pagination">
        <?php 
        	echo $this->element('paged_view');
        ?>
      </ul>
    </div> <!-- extra option -->

    <!-- Sidebar Kanan
    ================================================== -->
    <?php
     	echo $this->element('sidebar_right');
	?>


  </div> <!-- /container -->

  <div id="schemeModal" class="modal hide">
    <h4>Change Color Scheme</h4>
    <div class="color-panel"></div>
  </div> <!-- color panel -->

  <div id="chartModal" class="modal hide">
    <div id="chart1" style="height:270px; width:650px;"></div>
    <a href="#" id="chartClose" class="black-link">hide chart</a>
  </div> <!-- hidden chart -->

</body>

</html>
